// pages/franchiseees/franchiseeeCard/franchiseeeCard.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    navList: [{
        title: '充值管理',
        showIndex: false,
        inner: [{
          navName: '充值记录',
          url: '../rechargeRecords/rechargeRecords'
        }],
      },
      {
        title: '普通水卡管理',
        showIndex: false,
        inner: [{
            navName: '水卡',
            url: '../../fictitiousCard/fictitiousCard?type=1'
          },
          {
            navName: '水卡开卡记录',
            url: '../applyLists/applyLists'
          },
          {
            navName: '线上实体卡申请记录',
            url: '../../examineOnline/examineOnline?is_franchiser=1'
          },
        ]
      },
      {
        title: '特殊水卡管理',
        showIndex: false,
        inner: [{
          navName: '水卡开卡记录',
          url: '../specialApplyLists/specialApplyLists'
        }]
      },
      {
        title: '卡库管理',
        showIndex: false,
        inner: [{
          navName: '卡库',
          url: '../../cardList/cardList?is_franchiser=1'
        }]
      },
    ],
  },



  // 展开折叠选择  
  panel: function (e) {
    var that = this;
    var i = e.currentTarget.dataset.index
    var nv = that.data.navList;
    if (nv[i].showIndex == false) {
      nv[i].showIndex = true
    } else {
      nv[i].showIndex = false
    }
    that.setData({
      navList: nv
    })
  }
})